package com.suse.warmstill.service;

import com.suse.warmstill.common.model.CallResult;
import com.suse.warmstill.common.model.ListPageModel;
import com.suse.warmstill.entity.Comment;
import com.baomidou.mybatisplus.extension.service.IService;
import com.suse.warmstill.vo.CommentPostVo;
import com.suse.warmstill.vo.CommentRootVo;
import com.suse.warmstill.vo.CommentVo;

import java.util.List;

/**
 * @author ADMIN
 * @description 针对表【comment】的数据库操作Service
 * @createDate 2023-02-04 15:41:12
 */
public interface CommentService {

    CallResult<CommentVo> save(CommentPostVo commentPostVo);

    CommentRootVo listComments(String rootId);

    ListPageModel<CommentRootVo> listAllComments(Long articleId, int size, int current);
}
